# while中使用break跳出循环
i = 0
while i <= 5:
    i += 1
    print("星期为：", i)
    if i == 3:
        break

i = 0
while i <= 5:
    if i == 3:
        break
        print('星期为：', i)
        i += 1

# for循环中使用break语句
for i in range(1, 6):
    print("星期", i)
    if i == 3:
        break

for i in range(1, 6):
    if i == 3:
        break
    print('星期', i)
# for循环语句中使用break语句
for i in range(1, 6):
    print('星期', i)
    if i == 3:
        break

for i in range(1, 6):
    if i == 3:
        break
    print('星期', i)
